public class Sub extends Base{
    private int z;
    public Sub(int x,int y,int z){
        super(x,y);
        this.z = z;
    }
    public int calculate(){
        int ret , x ,y;
        x = super.getX();
        y = super.getY();
        ret = x*y*z;
        return ret;
    }


}
